import request from '@/utils/request'
import Qs from 'qs'
export function getList(query) {
    return request({
        url: '/api/spec',
        method: 'GET',
        params: query
    })
}

export function create(data) {
    data = Qs.parse(data)
    return request({
      url: 'api/spec',
      method: 'POST',
      data
    })
  }
  export function edit(data) {
    data = Qs.parse(data)
    return request({
      url: 'api/spec/' + data.id,
      method: 'PUT',
      data
    })
  }
  
  export function destroy(id) {
    return request({
      url: 'api/spec/' + id,
      method: 'DELETE'
    })
  }
  